<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<head>
    <meta charset="utf-8"/>
    <title>保险代理后台管理系统</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
    <jsp:include page="../common/header.jsp"></jsp:include>
    <%@include file="../common/taglib.jsp" %>

    <!-- ================== 单独作用于本页表格td ================== -->
    <style>
        .table > tbody > tr > td {
            padding: 10px 15px;
            padding-top: 7px;
            padding-right: 15px;
            padding-bottom: 7px;
            padding-left: 15px;
        }
    </style>
    <!-- ================== 单独作用于本页表格td ================== -->

</head>
<body>
<!-- begin #page-loader -->
<div id="page-loader" class="fade in"><span class="spinner"></span></div>
<!-- end #page-loader -->

<!-- begin #page-container -->
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
    <jsp:include page="../common/top.jsp"/>

    <!-- begin #sidebar -->
    <jsp:include page="../common/sitebar.jsp"/>
    <div class="sidebar-bg"></div>
    <!-- end #sidebar -->
    <!-- begin #content -->
    <div id="content" class="content">
        <input id="initFlag" type="hidden" value="${initFlag}">
        <!-- begin page-header -->
        <%--<h1 class="page-header">订单管理/应收订单<small>&nbsp;</small></h1>--%>
        <!-- end page-header -->

        <!-- begin row -->
        <div class="row">
            <!-- begin col-12 -->
            <div class="col-md-12">
                <!-- begin panel -->
                <ul class="nav nav-tabs" id="toolBar">
                    <li id="default1" class="active"><a href="#default-tab-1" onclick="toolBarInit('1');"
                                                        data-toggle="tab">保险公司</a></li>
                    <li id="default2" class=""><a href="#default-tab-2" onclick="toolBarInit('2');"
                                                  data-toggle="tab">渠道</a></li>
                    <li id="default3" class="hidden"><a href="#default-tab-3" data-toggle="tab">结算审核</a></li>
                    <li id="default4" class="hidden"><a href="#default-tab-4" data-toggle="tab">订单详情</a></li>
                    <shiro:hasPermission name="应收保险公司列表-下载">
                    <li id="default5" class="link-down"><span onclick="downloadOrders(1)"><i
                            class="fa fa-download fa-2"></i>&nbsp;下载列表</span></li>
                    </shiro:hasPermission>
                    <li id="default9" class="link-down hidden"><span onclick="downloadOrders(2)"><i
                        class="fa fa-download fa-2"></i>&nbsp;下载列表</span></li>
                    <shiro:hasPermission name="应收保险公司列表-导入收款">
                    <li id="default6" class="link-down"><span onclick="showGatheringModal()" data-toggle="modal">导入收款</span>
                    </li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="应收保险公司列表-导入开票">
                    <li id="default7" class="link-down"><span onclick="showInvoiceModal()" data-toggle="modal">导入开票</span>
                    </li>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="应收保险公司列表-导入核对">
                    <li id="default8" class="link-down"><span onclick="showCheckModal()" data-toggle="modal">导入核对</span></li>
                    </shiro:hasPermission>
                </ul>
                <div class="tab-content">
                    <!-- 应收保险公司begin -->
                    <div class="tab-pane fade active in" id="default-tab-1">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <label class="col-md-1 control-label" style="width: 88px;">保险公司：</label>
                                <div class="col-md-2">
                                    <select class="form-control" id="insurer">
                                        <option value="">全部</option>
                                        <c:forEach items="${insurerList}" var="item" varStatus="status">
                                            <option value="${item.tid }">${item.name }</option>
                                        </c:forEach>
                                    </select>
                                </div>
                                <label class="col-md-1 control-label" style="width: 88px;">保单号：</label>
                                <div class="col-md-2">
                                    <input type="text" id="orderNumber" class="form-control" placeholder=""
                                           onkeypress="if(event.keyCode==13||event.which==13){return false;}"/>
                                </div>
                                <label class="col-md-1 control-label" style="width: 88px;">车牌号：</label>
                                <div class="col-md-2">
                                    <input type="text" id="plateNumber" class="form-control" placeholder=""
                                           onkeypress="if(event.keyCode==13||event.which==13){return false;}"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-1 control-label" style="width: 88px;">渠道：</label>
                                <div class="col-md-2">
                                    <%--<select class="form-control selectpicker" id="channelTid">
                                        <option value="">全部</option>
                                        <c:forEach var="channel" items="${channelList }">
                                            <c:choose>
                                                <c:when test="${channel.type==2}">
                                                    <option value="${channel.tid}">${channel.companyRegisterName}</option>
                                                </c:when>
                                                <c:otherwise>
                                                    <option value="${channel.tid}">${channel.contact.name}</option>
                                                </c:otherwise>
                                            </c:choose>
                                        </c:forEach>
                                    </select>--%>
                                    <input type="hidden" id="channelTid" value="">
                                    <input type="text" id="channels" name="channel" data-toggle="dropdown"  class="form-control dropdown-toggle" placeholder="渠道" />
                                    <ul id="channelsList" class="dropdown-menu" style="max-height: 200px;overflow: auto;margin-left: 15px;"></ul>
                                </div>
                                <label class="col-md-1 control-label" style="width: 88px;">状态：</label>
                                <div class="col-md-2">
                                    <select class="form-control" id="status">
                                        <option value="0">全部</option>
                                        <option value="1">待核对</option>
                                        <option value="2">待开票</option>
                                        <option value="3">待收款</option>
                                        <option value="4">待审核</option>
                                        <option value="7">结算审核驳回</option>
                                    </select>
                                </div>
                                <label class="col-md-1 control-label" style="width: 88px;">付款主体：</label>
                                <div class="col-md-2">
                                    <select class="form-control" id="paymentSubject">
                                        <option value="">全部</option>
                                        <option value="1">环宇康泰</option>
                                        <option value="2">青岛盛达</option>
                                        <option value="3">玉环天云</option>
                                        <option value="4">汉龙</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group" style="margin-bottom: 2px;">
                                <label class="col-md-1 control-label" style="width: 88px;">出单日期：</label>
                                <div class="col-md-4">
                                    <div class="input-group input-daterange">
                                        <input type="text" class="form-control datepicker-default"
                                               id="issuanceDateStart" placeholder="开始日期"/>
                                        <span class="input-group-addon">至</span>
                                        <input type="text" class="form-control datepicker-default" id="issuanceDateEnd"
                                               placeholder="结束日期"/>
                                    </div>
                                </div>
                                <button type="button" onclick="companyOrderSearch()"
                                        class="btn btn-primary m-r-5 m-b-5">查询
                                </button>
                            </div>
                        </form>

                        <div class="table-responsive">
                            <table id="companytable" style="word-break:break-all;word-wrap:break-word"
                                   class="table table-striped table-bordered">
                                <thead>
                                <tr>
                                    <th width="6%">保单号</th>
                                    <th width="6%">付款主体</th>
                                    <th width="6%">保险公司</th>
                                    <th width="6%">险种</th>
                                    <th width="6%">实收保费（元）</th>
                                    <th width="6%">税后保费（元）</th>
                                    <th width="6%">核对税后保费（元）</th>
                                    <th width="6%">跟单点位</th>
                                    <th width="6%">补点点位</th>
                                    <th width="6%">核对跟单点位</th>
                                    <th width="6%">核对补点点位</th>
                                    <th width="6%">跟单手续费（元）</th>
                                    <th width="6%">补点手续费（元）</th>
                                    <th width="6%">核对结果</th>
                                    <th width="6%">是否开票</th>
                                    <th width="6%">状态</th>
                                    <th width="6%">操作</th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                    <!-- 应收保险公司end -->

                    <!-- 应收渠道begin -->
                    <div class="tab-pane fade" id="default-tab-2">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <label class="col-md-1 control-label" style="width: 88px;">保险公司：</label>
                                <div class="col-md-2">
                                    <select class="form-control" id="channelInsurer">
                                        <option value="">全部</option>
                                        <c:forEach items="${insurerList}" var="item" varStatus="status">
                                            <option value="${item.tid }">${item.name }</option>
                                        </c:forEach>
                                    </select>
                                </div>
                                <label class="col-md-1 control-label" style="width: 88px;">保单号：</label>
                                <div class="col-md-2">
                                    <input type="text" id="channelOrderNumber" class="form-control" placeholder=""
                                           onkeypress="if(event.keyCode==13||event.which==13){return false;}"/>
                                </div>
                                <label class="col-md-1 control-label" style="width: 127px;">渠道账期到期日：</label>
                                <div class="col-md-4">
                                    <div class="input-group input-daterange">
                                        <input type="text" class="form-control datepicker-default"
                                               id="accountMaturityDateStart" placeholder="开始日期"/>
                                        <span class="input-group-addon">至</span>
                                        <input type="text" class="form-control datepicker-default"
                                               id="accountMaturityDateEnd" placeholder="结束日期"/>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-1 control-label" style="width: 88px;">状态：</label>
                                <div class="col-md-2">
                                    <select class="form-control" id="channelStatus">
                                        <option value="0">全部</option>
                                        <option value="3">待结算</option>
                                        <option value="8">已逾期</option>
                                        <option value="4">待审核</option>
                                        <option value="7">结算审核驳回</option>
                                    </select>
                                </div>
                                <label class="col-md-1 control-label" style="width: 88px;">车牌号：</label>
                                <div class="col-md-2">
                                    <input type="text" id="channelPlateNumber" class="form-control" placeholder=""
                                           onkeypress="if(event.keyCode==13||event.which==13){return false;}"/>
                                </div>
                                <label class="col-md-1 control-label" style="width: 127px;">渠道：</label>
                                <div class="col-md-2">
                                    <%--<select class="form-control selectpicker" id="orderChannelId">--%>
                                        <%--<option value="">全部</option>--%>
                                        <%--<c:forEach var="channel" items="${channelList }">--%>
                                            <%--<c:choose>--%>
                                                <%--<c:when test="${channel.type==2}">--%>
                                                    <%--<option value="${channel.tid}">${channel.companyRegisterName}</option>--%>
                                                <%--</c:when>--%>
                                                <%--<c:otherwise>--%>
                                                    <%--<option value="${channel.tid}">${channel.contact.name}</option>--%>
                                                <%--</c:otherwise>--%>
                                            <%--</c:choose>--%>
                                        <%--</c:forEach>--%>
                                    <%--</select>--%>
                                    <input type="hidden" id="orderChannelId" value="">
                                    <input type="text" id="orderChannels" name="channel" data-toggle="dropdown"  class="form-control dropdown-toggle" placeholder="渠道" />
                                    <ul id="orderChannelsList" class="dropdown-menu" style="max-height: 200px;overflow: auto;margin-left: 15px;"></ul>
                                </div>
                                <button type="button" onclick="channelOrderSearch()"
                                        class="btn btn-primary m-r-5 m-b-5">查询
                                </button>
                            </div>
                        </form>

                        <div class="table-responsive">
                            <table id="channeltable" class="table table-striped table-bordered"
                                   style="word-break:break-all;word-wrap:break-word">
                                <thead>
                                <tr>
                                    <th width="5%">保单号</th>
                                    <th width="5%">付款主体</th>
                                    <th width="5%">保险公司</th>
                                    <th width="5%">渠道</th>
                                    <th width="5%">渠道联系电话</th>
                                    <th width="5%">险种</th>
                                    <th width="5%">被保险人</th>
                                    <th width="5%">被保险人证件号</th>
                                    <th width="5%">车牌号</th>
                                    <th width="5%">商业保险费</th>
                                    <th width="5%">交强保险费</th>
                                    <th width="5%">车船税</th>
                                    <th width="5%">全保费</th>
                                    <th width="5%">下单日期</th>
                                    <th width="5%">起保日期</th>
                                    <th width="5%">渠道返点</th>
                                    <th width="5%">渠道返佣费</th>
                                    <th width="5%">应收保费</th>
                                    <th width="5%">渠道账期到期日</th>
                                    <th width="5%">状态</th>
                                    <th width="5%">操作</th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                    <!-- 应收渠道end -->

                    <!-- 结算审核begin -->
                    <div class="tab-pane fade" id="default-tab-3">
                        <ul id="sTabul" class="nav nav-pills pad-bottom-10">
                            <li><a href="#sTab1" data-toggle="tab">保单信息</a></li>
                            <li><a href="#sTab2" data-toggle="tab">应付信息</a></li>
                            <li><a href="#sTab3" data-toggle="tab">应收信息</a></li>
                        </ul>
                        <div class="form-wrap mar-bottom-0">
                        <div class="tab-content">
                        <div id="sTab1" class="tab-pane fade">
                            <form role="form" class="form-horizontal form-bordered">
                                <label class="control-label col-md-0 col-sm-0">投保客户信息</label>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">保单号：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="orderNumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">车主：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="carOwnerShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">车牌号：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="plateNumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">车架号：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="frameNumberShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">车辆种类：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="vehicleTypeShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">被保险人：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="insurantShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">被保险人身份证号码/组织机构代码：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="orgIdCodeShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">投保人：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="applicantShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <label class="control-label col-md-0 col-sm-0">保险信息</label>
                                <div id="insInfoDiv">
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">保险公司：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="insyrerNameShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">险种：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="typeInsuranceShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">保单生效日期：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="insureStartDateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">垫资类型：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="typeInsurance2Show" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">垫资账期：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="laonAccountShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                </div>
                                <label class="control-label col-md-0 col-sm-0">费用合计</label>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">全保费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="allPremiumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">渠道应支付保费合计：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="mustPremiumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">保险公司跟单手续费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="followRpoundageShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">保险公司补点手续费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="replenishRpoundageShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">税后保费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="texPremiumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">渠道返点：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="channelPointShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">渠道返佣费合计：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="channelRebateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">付款主体：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="paySubjectShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">出单员：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="followUserShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">出单日期：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="dateIssuanceShow" class="form-control-static"></p>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div id="sTab2" class="tab-pane fade">
                            <form role="form" class="form-horizontal form-bordered">
                                <label class="control-label col-md-0 col-sm-0">应付保险公司</label>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">收渠道金额：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="realPremiumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">收款日期：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="receiptDateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">付保险公司金额：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="payInsurerAmtShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">付保险公司日期：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="payDateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <label class="control-label col-md-0 col-sm-0">应付渠道</label>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">应付返佣费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="mustRebateAmtShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">付返佣费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="realRebateAmtShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">付返佣费日期：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="channelPayDateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div id="sTab3" class="tab-pane fade">
                            <form role="form" class="form-horizontal form-bordered">
                                <label class="control-label col-md-0 col-sm-0">应收保险公司</label>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">跟单点位：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rFollowPointShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">补点点位：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rReplenishPointShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">跟单手续费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rFollowRpoundageShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">补点手续费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rReplenishRpoundageShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">核对结果：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rCheckResultShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">核对税后保费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rCheckPremiumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">核对跟单点位：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rChechFollowRpoundageShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">核对补点点位：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rCheckReplenishRpoundageShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">核对时间：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rCheckDateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">是否开票：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rIsTicketOpenShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">开票时间：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rTicketOpenTimeShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">实收保险公司手续费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rRealRebateAmtShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">实收跟单手续费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="realFollowRpoundageShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">实收补点手续费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="realReplenishRpoundageShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">收款时间：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rReceiptDateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <label class="control-label col-md-0 col-sm-0">应收渠道</label>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">应收渠道保费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rMustPremiumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">账期到期日：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rInsyrerMaturityDateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">实收渠道保费：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rRealPremiumShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">收取日期：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rChannelReceiptDateShow" class="form-control-static"></p>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-md-4 col-sm-0">渠道收费来源：</label>
                                    <div class="col-md-6 col-sm-6">
                                        <p id="rCapitalSourcrShow" class="form-control-static"></p>
                                    </div>
                                </div>
                            </form>
                        </div>
                        </div>
                        </div>
                        <div class="panel panel-inverse">
                            <div class="modal-body">
                                <form class="form-horizontal" id="auditForm" onsubmit="return false" data-parsley-validate="true">
                                    <%--<input type="hidden" id="checkTid" value="">--%>
                                    <input type="hidden" id="capitalTid" value="">
                                    <input type="hidden" id="turnType" value="">
                                    <section class="form-horizontal">
                                        <div class="form-group">
                                            <label class="col-md-4 control-label">审核意见：</label>
                                            <div class="col-md-6">
                                                <textarea class="form-control" id="auditOpinion" placeholder="请填写审核意见！" rows="5" data-parsley-maxlength="100"  data-parsley-maxlength-message="请输入100字符以内" data-parsley-required="true" data-parsley-required-message="请输入审核意见"></textarea>
                                            </div>
                                        </div>
                                    </section>
                                </form>
                            </div>
                            <div class="modal-footer">
                                <%--<a onclick="adopt('${capitalRecord.tid}', '${turnType}');" class="btn btn-sm btn-danger">通过</a>--%>
                                <%--<a onclick="reject('${capitalRecord.tid}', '${turnType}');" class="btn btn-sm btn-white">驳回</a>--%>
                                <a onclick="adopt();" class="btn btn-sm btn-danger">通过</a>
                                <a onclick="reject();" class="btn btn-sm btn-white">驳回</a>
                            </div>
                        </div>
                        <div>
                            <section class="pad-top-10 pad-bottom-20">
                            <table class="bg-warning">
                                <thead>
                                    <tr>
                                        <th>操作事项</th>
                                        <th>操作人</th>
                                        <th>操作时间</th>
                                        <th>备注</th>
                                    </tr>
                                </thead>
                                <tbody id="logTable"></tbody>
                            </table>
                            </section>
                        </div>
                    </div>
                    <!-- 结算审核end -->

                    <!-- 订单详情begin -->
                    <div class="tab-pane fade" id="default-tab-4">
                        <div id="iframeParent">
                            <iframe width="100%" height="100%" frameborder="0" id="orderDetail"></iframe>
                        </div>
                    </div>
                    <!-- 订单详情end -->

                    <!-- #modal-alert导入核对 -->
                    <div class="modal fade" id="modalBatchCheck">
                        <div class="modal-dialog" style="width: 480px;">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                                    </button>
                                    <h5 class="modal-title">导入核对</h5>
                                </div>
                                <div class="modal-body">
                                    <section class="form-horizontal">
                                        <div class="form-group">
                                            <label class="control-label col-md-3">导入文件：</label>
                                            <div class="col-md-8">
                                                <p class="form-control-static"><input type="file" id="importCheckFile"/></p>
                                            </div>
                                        </div>
                                    </section>
                                </div>
                                <div class="modal-footer">
                                    <a onclick="importCheck();" class="btn btn-primary">确定</a>
                                    <a href="javascript:;" class="btn btn-default" data-dismiss="modal">取消</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- #modal-alert导入开票 -->
                    <div class="modal fade" id="modalBatchInvoice">
                        <div class="modal-dialog" style="width: 480px">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                                    </button>
                                    <h5 class="modal-title">导入开票</h5>
                                </div>
                                <div class="modal-body">
                                    <section class="form-horizontal">
                                        <div class="form-group">
                                            <label class="control-label col-md-3">导入文件：</label>
                                            <div class="col-md-8">
                                                <p class="form-control-static"><input type="file" id="importInvoiceFile"/></p>
                                            </div>
                                        </div>
                                    </section>
                                </div>
                                <div class="modal-footer">
                                    <a onclick="importInvoice();" class="btn btn-primary">确定</a>
                                    <a href="javascript:;" class="btn btn-default" data-dismiss="modal">取消</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- #modal-alert导入收款 -->
                    <div class="modal fade" id="modalBatchGathering">
                        <div class="modal-dialog" style="width: 480px">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                                    </button>
                                    <h5 class="modal-title">导入收款</h5>
                                </div>
                                <div class="modal-body">
                                    <form class="form-horizontal" id="batchGatheringForm" onsubmit="return false"
                                          data-parsley-validate="true">
                                        <section class="form-horizontal">
                                            <div class="form-group">
                                                <label class="control-label col-md-3">导入文件：</label>
                                                <div class="col-md-8">
                                                    <p class="form-control-static"><input type="file" id="importGatheringFile"/></p>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-md-3">收款时间：</label>
                                                <div class="col-md-8">
                                                    <input type="text" class="form-control datepicker-default"
                                                           id="batchGatheringDate" data-parsley-required="true"
                                                           data-parsley-required-message="请输入收款时间"
                                                           data-parsley-date="true" data-parsley-date-message="请输入yyyy-MM-dd格式的日期"/>
                                                </div>
                                            </div>
                                        </section>
                                    </form>
                                </div>
                                <%--<section class="form-horizontal">--%>
                                <div class="modal-footer">
                                    <a onclick="importGathering();" class="btn btn-primary">确定</a>
                                    <a href="javascript:;" class="btn btn-default" data-dismiss="modal">取消</a>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>      <!-- end panel -->
            </div>
            <!-- end col-12 -->
        </div>
        <!-- end row -->
    </div>
    <!-- end #content -->

    <!-- 批量核对展示begin -->
    <div class="modal fade" id="checkDatatab" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <form role="form" action="" method="get" data-parsley-validate="true" id="checkDialogForm">
            <div class="modal-dialog" style="width: 800px;" aria-hidden="true" role="document">
                <a id="reload" href="" style="display:none">reload</a>
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" onclick="cancelModal('checkDatatab', '还未进行核对，确定取消？');"><span
                                aria-hidden="true">×</span></button>
                        <h4 class="modal-title" id="checkDataLabel">导入核对结果</h4>
                    </div>
                    <div class="modal-body">
                        <div class="dataTables_length" id="data-table_length">
                            <div id="data-table_filter" class="dataTables_filter">
                                <label class="m-r-5 m-b-5">匹配<span id="matchingCount"></span>条&nbsp;&nbsp;&nbsp;&nbsp;未匹配<span
                                        id="noMatchingCount"></span>条</label>
                                <button type="button" onclick="confirmCheck()" class="btn btn-info m-r-5 m-b-5">确定核对
                                </button>
                                <button type="button" onclick="cancelModal('checkDatatab', '还未进行核对，确定取消？');"
                                        class="btn btn-default m-r-5 m-b-5">取消
                                </button>
                            </div>
                            <div class="table-responsive" style="overflow-x: hidden;">
                                <table id="checkDataTable" class="table table-striped table-bordered">
                                    <thead>
                                    <tr>
                                        <th width="6%">核对结果</th>
                                        <th width="6%">保单号</th>
                                        <th width="6%">付款主体</th>
                                        <th width="6%">保险公司</th>
                                        <th width="6%">险种</th>
                                        <th width="6%">实收保费（元）</th>
                                        <th width="6%">税后保费（元）</th>
                                        <th width="6%">核对税后保费（元）</th>
                                        <th width="6%">跟单点位</th>
                                        <th width="6%">补点点位</th>
                                        <th width="6%">核对跟单点位</th>
                                        <th width="6%">核对补点点位</th>
                                        <th width="6%">跟单手续费（元）</th>
                                        <th width="6%">补点手续费（元）</th>
                                        <th width="6%">核对结果</th>
                                        <th width="6%">是否开票</th>
                                        <th width="6%">状态</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <!-- 批量核对展示end -->

    <!-- 批量开票展示begin -->
    <div class="modal fade" id="invoiceDatatab" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <form role="form" action="" method="get" data-parsley-validate="true" id="invoiceDialogForm">
            <div class="modal-dialog" style="width: 800px;" aria-hidden="true" role="document">
                <a id="reload1" href="" style="display:none">reload</a>
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" onclick="cancelModal('invoiceDatatab', '还未进行批量开票，确定取消？');">
                            <span aria-hidden="true">×</span></button>
                        <h4 class="modal-title" id="invoiceDataLabel">待开票保单</h4>
                    </div>
                    <div class="modal-body">
                        <div class="dataTables_length" id="data-table_length1">
                            <div id="data-table_filter1" class="dataTables_filter">
                                <label class="m-r-5 m-b-5">待开票保单<span id="invoiceCount"></span>单&nbsp;&nbsp;&nbsp;&nbsp;总金额<span
                                        id="invoiceAmount"></span>元&nbsp;&nbsp;&nbsp;&nbsp;匹配<span
                                        id="invoiceMatchingCount"></span>条&nbsp;&nbsp;&nbsp;&nbsp;未匹配<span
                                        id="invoiceNoMatchingCount"></span>条</label>
                                <button type="button" onclick="confirmInvoice()" class="btn btn-info m-r-5 m-b-5">确定
                                </button>
                                <button type="button" onclick="cancelModal('invoiceDatatab', '还未进行批量开票，确定取消？');"
                                        class="btn btn-default m-r-5 m-b-5">取消
                                </button>
                            </div>
                            <div class="table-responsive" style="overflow-x: hidden;">
                                <table id="invoiceDataTable" class="table table-striped table-bordered">
                                    <thead>
                                    <tr>
                                        <th width="6%">保单号</th>
                                        <th width="6%">付款主体</th>
                                        <th width="6%">保险公司</th>
                                        <th width="6%">险种</th>
                                        <th width="6%">实收保费（元）</th>
                                        <th width="6%">税后保费（元）</th>
                                        <th width="6%">核对税后保费（元）</th>
                                        <th width="6%">跟单点位</th>
                                        <th width="6%">补点点位</th>
                                        <th width="6%">核对跟单点位</th>
                                        <th width="6%">核对补点点位</th>
                                        <th width="6%">跟单手续费（元）</th>
                                        <th width="6%">补点手续费（元）</th>
                                        <th width="6%">核对结果</th>
                                        <th width="6%">是否开票</th>
                                        <th width="6%">状态</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <!-- 批量开票展示end -->

    <!-- 批量收款展示begin -->
    <div class="modal fade" id="gatheringDatatab" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <form role="form" action="" method="get" data-parsley-validate="true" id="gatheringDialogForm">
            <div class="modal-dialog" style="width: 800px;" aria-hidden="true" role="document">
                <a id="reload2" href="" style="display:none">reload</a>
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close"
                                onclick="cancelModal('gatheringDatatab', '还未进行批量收款，确定取消？');"><span
                                aria-hidden="true">×</span></button>
                        <h4 class="modal-title" id="gatheringDataLabel">待收款保单</h4>
                    </div>
                    <div class="modal-body">
                        <div class="dataTables_length" id="data-table_length2">
                            <div id="data-table_filter2" class="dataTables_filter">
                                <label class="m-r-5 m-b-5">待收款保单<span id="gatheringCount"></span>单&nbsp;&nbsp;&nbsp;&nbsp;总金额<span
                                        id="gatheringAmount"></span>元</label>
                                <button type="button" onclick="confirmGathering()" class="btn btn-info m-r-5 m-b-5">确定
                                </button>
                                <button type="button" onclick="cancelModal('gatheringDatatab', '还未进行批量收款，确定取消？');"
                                        class="btn btn-default m-r-5 m-b-5">取消
                                </button>
                            </div>
                            <div class="table-responsive" style="overflow-x: hidden;">
                                <table id="gatheringDataTable" class="table table-striped table-bordered">
                                    <thead>
                                    <tr>
                                        <th width="6%">保单号</th>
                                        <th width="6%">付款主体</th>
                                        <th width="6%">保险公司</th>
                                        <th width="6%">险种</th>
                                        <th width="6%">实收保费（元）</th>
                                        <th width="6%">税后保费（元）</th>
                                        <th width="6%">核对税后保费（元）</th>
                                        <th width="6%">跟单点位</th>
                                        <th width="6%">补点点位</th>
                                        <th width="6%">核对跟单点位</th>
                                        <th width="6%">核对补点点位</th>
                                        <th width="6%">跟单手续费（元）</th>
                                        <th width="6%">补点手续费（元）</th>
                                        <th width="6%">核对结果</th>
                                        <th width="6%">是否开票</th>
                                        <th width="6%">状态</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <!-- 批量收款展示end -->

    <!-- 单条数据核对弹出框begin -->
    <div class="modal fade" id="modalCheck" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" style="width: 480px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">核对</h5>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="checkOrderForm" onsubmit="return false"
                          data-parsley-validate="true">
                        <input type="hidden" id="checkTid" value="">
                        <section class="form-horizontal">
                            <div class="form-group">
                                <label class="col-md-3 control-label">核对结果</label>
                                <div class="col-md-7">
                                    <label class="radio-inline">
                                        <input type="radio" name="checkResultRadio" id="checkResultRadio1" value="1"
                                               checked="true">
                                        一致
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="checkResultRadio" id="checkResultRadio0" value="2">
                                        不一致
                                    </label>
                                </div>
                            </div>
                            <div class="form-group hideInput hidden" id="checkTexPremium">
                                <label class="col-md-3 control-label">核对税后保费</label>
                                <div class="col-md-7">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputCheckTexPremium">
                                        <div class="input-group-addon">元</div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group hideInput hidden" id="checkFollowPoint">
                                <label class="col-md-3 control-label">核对跟单点位</label>
                                <div class="col-md-7">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputCheckFollowPoint">
                                        <div class="input-group-addon">%</div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group hideInput hidden" id="checkReplenishPoint">
                                <label class="col-md-3 control-label">核对补点点位</label>
                                <div class="col-md-7">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputCheckReplenishPoint">
                                        <div class="input-group-addon">%</div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">备注</label>
                                <div class="col-md-7">
                                    <textarea class="form-control" id="inputRemark" placeholder="请填写100字符以内的备注！"
                                              rows="5" data-parsley-maxlength="100"
                                              data-parsley-maxlength-message="请输入100字符以内"></textarea>
                                </div>
                            </div>
                        </section>
                    </form>
                </div>
                <div class="modal-footer">
                    <a onclick="checkOrder();" class="btn btn-primary">提交</a>
                    <a onclick="cancelModal('modalCheck', '当前填写内容未提交，确认取消？');" class="btn btn-default">取消</a>
                </div>
            </div>
        </div>
    </div>
    <!-- 单条数据核对弹出框end -->

    <!-- 单条数据开票弹出框begin -->
    <div class="modal fade" id="modalInvoice" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" style="width: 480px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">开票</h5>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="invoiceForm" onsubmit="return false" data-parsley-validate="true">
                        <input type="hidden" id="invoiceTid" value="">
                        <section class="form-horizontal">
                            <div class="form-group">
                                <label class="control-label col-md-4">开票时间</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control datepicker-default" id="inputInvoiceDate"
                                           data-parsley-required="true" data-parsley-required-message="请输入开票时间"
                                           data-parsley-date="true" data-parsley-date-message="请输入yyyy-MM-dd格式的日期"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label">备注</label>
                                <div class="col-md-6">
                                    <textarea class="form-control" id="inputInvoiceRemark" data-parsley-maxlength="100"
                                              data-parsley-maxlength-message="请输入100字符以内" placeholder="如有需要，请填写100字符以内的备注！" rows="5"></textarea>
                                </div>
                            </div>
                        </section>
                    </form>
                </div>
                <div class="modal-footer">
                    <a onclick="orderInvoice();" class="btn btn-sm btn-primary">提交</a>
                    <a onclick="cancelModal('modalInvoice', '当前填写内容未提交，确认取消？');" class="btn btn-sm btn-default">取消</a>
                </div>
            </div>
        </div>
    </div>
    <!-- 单条数据开票弹出框end -->

    <!-- 单条数据收款弹出框begin -->
    <div class="modal fade" id="modalGathering" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" style="width: 480px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">收款</h5>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="gatheringForm" onsubmit="return false"
                          data-parsley-validate="true">
                        <input type="hidden" id="gatheringTid" value="">
                        <section class="form-horizontal">
                            <div class="form-group" id="realPremiumAmt">
                                <label class="col-md-4 control-label">收保险公司手续费</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputRealPremiumAmt"
                                               data-parsley-money="true"
                                               data-parsley-money-message="请输入9位以内的整数或小数且小数点后只有两位"
                                               data-parsley-required="true" data-parsley-required-message="请输入收保险公司手续费">
                                        <div class="input-group-addon">元</div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group" id="followRpoundage">
                                <label class="col-md-4 control-label">跟单手续费</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputFollowRpoundage"
                                               data-parsley-money="true"
                                               data-parsley-money-message="请输入9位以内的整数或小数且小数点后只有两位"
                                               data-parsley-required="true" data-parsley-required-message="请输入跟单手续费">
                                        <div class="input-group-addon">元</div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group" id="replenishRpoundage">
                                <label class="col-md-4 control-label">补点手续费</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputReplenishRpoundage"
                                               data-parsley-money="true"
                                               data-parsley-money-message="请输入9位以内的整数或小数且小数点后只有两位"
                                               data-parsley-required="true" data-parsley-required-message="请输入补点手续费">
                                        <div class="input-group-addon">元</div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-md-4">收款时间</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control datepicker-default" id="inputGatheringDate"
                                           data-parsley-required="true" data-parsley-required-message="请输入收款时间"
                                           data-parsley-date="true" data-parsley-date-message="请输入yyyy-MM-dd格式的日期"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label">备注</label>
                                <div class="col-md-6">
                                    <textarea class="form-control" id="inputGatheringRemark"
                                              placeholder="请填写100字符以内的备注！" rows="5" data-parsley-maxlength="100"
                                              data-parsley-maxlength-message="请输入100字符以内" data-parsley-required="true"
                                              data-parsley-required-message="请输入收款备注"></textarea>
                                </div>
                            </div>
                        </section>
                    </form>
                </div>
                <div class="modal-footer">
                    <a onclick="orderGathering();" class="btn btn-sm btn-primary">提交</a>
                    <a onclick="cancelModal('modalGathering', '当前填写内容未提交，确认取消？');" class="btn btn-sm btn-default">取消</a>
                </div>
            </div>
        </div>
    </div>
    <!-- 单条数据收款弹出框end -->

    <!-- 渠道应收结算弹出框begin -->
    <div class="modal fade" id="modalSettlement" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" style="width: 480px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">结算</h5>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="settlementForm" onsubmit="return false"
                          data-parsley-validate="true">
                        <input type="hidden" id="settlementTid" value="">
                        <input type="hidden" id="channelId" value="">
                        <section class="form-horizontal">
                            <div class="form-group" id="realPremium">
                                <label class="col-md-4 control-label">实收渠道保费</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputRealPremium"
                                               data-parsley-money="true"
                                               data-parsley-money-message="请输入9位以内的整数或小数且小数点后只有两位"
                                               data-parsley-required="true" data-parsley-required-message="请输入实收渠道保费">
                                        <div class="input-group-addon">元</div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-md-4">收取日期</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control datepicker-default" id="inputSettlementDate"
                                           data-parsley-required="true" data-parsley-required-message="请输入收取日期"
                                           data-parsley-date="true" data-parsley-date-message="请输入yyyy-MM-dd格式的日期"/>
                                </div>
                            </div>
                            <div class="form-group" id="capitalSourcr">
                                <label class="col-md-4 control-label">渠道收费来源</label>
                                <div class="col-md-6">
                                    <select class="form-control" id="inputCapitalSourcr" data-parsley-required="true"
                                            data-parsley-required-message="请选择渠道收费来源">
                                        <option value="">请选择</option>
                                        <option value="1">正常结算</option>
                                        <option value="2">保证金</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label">备注</label>
                                <div class="col-md-6">
                                    <textarea class="form-control" id="inputSettlementRemark"
                                              placeholder="请填写100字符以内的备注！" rows="5" data-parsley-maxlength="100"
                                              data-parsley-maxlength-message="请输入100字符以内" data-parsley-required="true"
                                              data-parsley-required-message="请输入结算备注"></textarea>
                                </div>
                            </div>
                        </section>
                    </form>
                </div>
                <div class="modal-footer">
                    <a onclick="orderSettlement();" class="btn btn-sm btn-primary">提交</a>
                    <a onclick="cancelModal('modalSettlement', '当前填写内容未提交，确认取消？');"
                       class="btn btn-sm btn-default">取消</a>
                </div>
            </div>
        </div>
    </div>
    <!-- 渠道应收结算弹出框end -->

    <!-- 应收订单退保弹出框begin -->
    <div class="modal fade" id="modalSurrender" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" style="width: 500px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">退保</h5>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="surrenderForm" onsubmit="return false"
                          data-parsley-validate="true">
                        <input type="hidden" id="surrenderTid" name="tid">
                        <input type="hidden" id="orderTid" name="ordId">
                        <input type="hidden" id="channelFlag" value="">
                        <section class="form-horizontal">
                            <div class="form-group">
                                <label class="col-md-4 control-label" style="width: 180px;">退保保险公司扣除手续费:</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputPayInsurerAmt"
                                               name="payInsurerAmt" data-parsley-money="true"
                                               data-parsley-money-message="请输入9位以内的整数或小数且小数点后只有两位"
                                               data-parsley-required="true"
                                               data-parsley-required-message="请输入退保保险公司扣除手续费">
                                        <span class="input-group-addon">元</span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label" style="width: 180px;">退保应扣除渠道佣金:</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputMustPremiumAmt"
                                               name="mustPremiumAmt" data-parsley-money="true"
                                               data-parsley-money-message="请输入9位以内的整数或小数且小数点后只有两位"
                                               data-parsley-required="true"
                                               data-parsley-required-message="请输入退保应扣除渠道佣金">
                                        <span class="input-group-addon">元</span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group hidden" id="mustPremium">
                                <label class="col-md-4 control-label" style="width: 180px;">退保渠道应还保费:</label>
                                <div class="col-md-6">
                                    <div class="input-group">
                                        <input type="text" class="form-control" id="inputMustPremium" name="mustPremium"
                                               data-parsley-money="true"
                                               data-parsley-money-message="请输入9位以内的整数或小数且小数点后只有两位">
                                        <span class="input-group-addon">元</span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-md-4" style="width: 180px;">起保日期:</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control" id="inputInsuranceDate" onfocus="this.blur()"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-md-4" style="width: 180px;">退保日期:</label>
                                <div class="col-md-6">
                                    <input type="text" class="form-control datepicker-default" id="inputSurrenderDate"
                                           name="surrenderDateStr" data-parsley-required="true"
                                           data-parsley-required-message="请输入退保日期"
                                           data-parsley-date="true" data-parsley-date-message="请输入yyyy-MM-dd格式的日期"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label" style="width: 180px;">备注:</label>
                                <div class="col-md-6">
                                    <textarea class="form-control" id="surrenderRemark" name="remark"
                                              placeholder="请填写100字符以内的备注！" rows="5" data-parsley-maxlength="100"
                                              data-parsley-maxlength-message="请输入100字符以内" data-parsley-required="true"
                                              data-parsley-required-message="请输入退保备注"></textarea>
                                </div>
                            </div>
                        </section>
                    </form>
                </div>
                <div class="modal-footer">
                    <a onclick="orderSurrender();" class="btn btn-primary">提交</a>
                    <a onclick="cancelModal('modalSurrender', '当前填写内容未提交，确认取消？');" class="btn btn-default">取消</a>
                </div>
            </div>
        </div>
    </div>
    <!-- 应收订单退保弹出框end -->

    <!-- end page container -->
    <jsp:include page="../common/footer.jsp"/>
    <script src="/static/js/receivable/receivable_company.js"></script>
    <script src="/static/js/receivable/receivable_channel.js"></script>
    <script src="/static/js/order/order.js"></script>
</body>
</html>
